package com.xzit.rcpyxt.mapper;

import com.xzit.rcpyxt.dto.*;
import com.xzit.rcpyxt.entity.CourseClass;

import java.util.Date;
import java.util.List;

public interface CourseClassMapper {

    public int insertByCourseClass(SaveCourseClassReqeust courseClass);
    public int insertByCourseClasss(CourseClass courseClass);

    public int updateByCourseClassStatus(updateCourseClassStatusRequest updateCourseClassStatusRequest);

    public List<CourseClass> selectByCourseClassAllList (CourseClassListRequest courseClassDto);

    public List<CourseClass> selectByCourseClassList (CourseClassListRequest courseClassDto);
    public int countByCourseClassList (CourseClassListRequest courseClassDto);

    public CourseClass selectByPrimaryKey(int id);

    public List<CourseClass> selectByUserCourseClassList (StudentSourceClassRequest courseClassDto);
    public int countByUserCourseClassList (StudentSourceClassRequest courseClassDto);

    public List<CourseClass> selectByStopCourseClassList(Date currentTime);

    public int updateByStopCourseClassStatus(int courseId);

}